package com.example.test.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@TableName("message")
@Data
public class Message {
    public String from;
    public String to;
    public String text;
    public String action;
    public Long id;

    public String getFrom() {return from;}
    public void setFrom(String from) {this.from = from;}
    public String getTo() {return to;}
    public void setTo(String to) {this.to = to;}
    public String getText() {return text;}
    public void setText(String text) {this.text = text;}
    public String getAction() {return action;}
    public void setAction(String action) {this.action = action;}
    public Long getId() {return id;}
    public void setId(Long id) {this.id = id;}

    @Override
    public String toString() {
        return "message{" +
                ", from='" + from + '\'' +
                ", text='" + text + '\'' +
                ", to='" + to + '\'' +
                '}';
    }
}